package cn.daichi.delayqueue.dlx;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class DlxConsumer {

    @RabbitListener(queues = DlxRabbitConfig.DLX_QUEUE_NAME)
    public void handle(String msg) {
        log.info(msg);
    }

}
